Optimal. Leaf size=215 \[ \frac{\log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}-\frac{\log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}+\frac{\tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 \sqrt [6]{a} b^{5/6}}-\frac{\tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}-2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 \sqrt [6]{a} b^{5/6}}+\frac{\tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}+2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 \sqrt [6]{a} b^{5/6}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.484503, antiderivative size = 215, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 6, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.462, Rules used = {295, 634, 618, 204, 628, 205} \[ \frac{\log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}-\frac{\log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}+\frac{\tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 \sqrt [6]{a} b^{5/6}}-\frac{\tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}-2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 \sqrt [6]{a} b^{5/6}}+\frac{\tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}+2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 \sqrt [6]{a} b^{5/6}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 295
Rule 634
Rule 618
Rule 204
Rule 628
Rule 205
Rubi steps
\begin{align*} \int \frac{x^4}{a+b x^6} \, dx &=\frac{\int \frac{-\frac{\sqrt [6]{a}}{2}+\frac{1}{2} \sqrt{3} \sqrt [6]{b} x}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{3 \sqrt [6]{a} b^{2/3}}+\frac{\int \frac{-\frac{\sqrt [6]{a}}{2}-\frac{1}{2} \sqrt{3} \sqrt [6]{b} x}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{3 \sqrt [6]{a} b^{2/3}}+\frac{\int \frac{1}{\sqrt [3]{a}+\sqrt [3]{b} x^2} \, dx}{3 b^{2/3}}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 \sqrt [6]{a} b^{5/6}}+\frac{\int \frac{-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b}+2 \sqrt [3]{b} x}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}-\frac{\int \frac{\sqrt{3} \sqrt [6]{a} \sqrt [6]{b}+2 \sqrt [3]{b} x}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}+\frac{\int \frac{1}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{12 b^{2/3}}+\frac{\int \frac{1}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{12 b^{2/3}}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 \sqrt [6]{a} b^{5/6}}+\frac{\log \left (\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}-\frac{\log \left (\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}+\frac{\operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1-\frac{2 \sqrt [6]{b} x}{\sqrt{3} \sqrt [6]{a}}\right )}{6 \sqrt{3} \sqrt [6]{a} b^{5/6}}-\frac{\operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1+\frac{2 \sqrt [6]{b} x}{\sqrt{3} \sqrt [6]{a}}\right )}{6 \sqrt{3} \sqrt [6]{a} b^{5/6}}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 \sqrt [6]{a} b^{5/6}}-\frac{\tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 \sqrt [6]{a} b^{5/6}}+\frac{\tan ^{-1}\left (\sqrt{3}+\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 \sqrt [6]{a} b^{5/6}}+\frac{\log \left (\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}-\frac{\log \left (\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} \sqrt [6]{a} b^{5/6}}\\ \end{align*}
Mathematica [A] time = 0.019082, size = 154, normalized size = 0.72 \[ \frac{\sqrt{3} \log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )-\sqrt{3} \log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )+4 \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )-2 \tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )+2 \tan ^{-1}\left (\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}+\sqrt{3}\right )}{12 \sqrt [6]{a} b^{5/6}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 159, normalized size = 0.7 \begin{align*} -{\frac{\sqrt{3}}{12\,a} \left ({\frac{a}{b}} \right ) ^{{\frac{5}{6}}}\ln \left ({x}^{2}+\sqrt{3}\sqrt [6]{{\frac{a}{b}}}x+\sqrt [3]{{\frac{a}{b}}} \right ) }+{\frac{1}{6\,b}\arctan \left ( 2\,{x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}+\sqrt{3} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}+{\frac{1}{3\,b}\arctan \left ({x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}+{\frac{\sqrt{3}}{12\,a} \left ({\frac{a}{b}} \right ) ^{{\frac{5}{6}}}\ln \left ({x}^{2}-\sqrt{3}\sqrt [6]{{\frac{a}{b}}}x+\sqrt [3]{{\frac{a}{b}}} \right ) }+{\frac{1}{6\,b}\arctan \left ( 2\,{x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-\sqrt{3} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.79985, size = 927, normalized size = 4.31 \begin{align*} -\frac{1}{3} \, \sqrt{3} \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2}{3} \, \sqrt{3} b x \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} + \frac{2}{3} \, \sqrt{3} \sqrt{a b^{4} x \left (-\frac{1}{a b^{5}}\right )^{\frac{5}{6}} - a b^{3} \left (-\frac{1}{a b^{5}}\right )^{\frac{2}{3}} + x^{2}} b \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} + \frac{1}{3} \, \sqrt{3}\right ) - \frac{1}{3} \, \sqrt{3} \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2}{3} \, \sqrt{3} b x \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} + \frac{2}{3} \, \sqrt{3} \sqrt{-a b^{4} x \left (-\frac{1}{a b^{5}}\right )^{\frac{5}{6}} - a b^{3} \left (-\frac{1}{a b^{5}}\right )^{\frac{2}{3}} + x^{2}} b \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} - \frac{1}{3} \, \sqrt{3}\right ) + \frac{1}{12} \, \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} \log \left (a b^{4} x \left (-\frac{1}{a b^{5}}\right )^{\frac{5}{6}} - a b^{3} \left (-\frac{1}{a b^{5}}\right )^{\frac{2}{3}} + x^{2}\right ) - \frac{1}{12} \, \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} \log \left (-a b^{4} x \left (-\frac{1}{a b^{5}}\right )^{\frac{5}{6}} - a b^{3} \left (-\frac{1}{a b^{5}}\right )^{\frac{2}{3}} + x^{2}\right ) + \frac{1}{6} \, \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} \log \left (a b^{4} \left (-\frac{1}{a b^{5}}\right )^{\frac{5}{6}} + x\right ) - \frac{1}{6} \, \left (-\frac{1}{a b^{5}}\right )^{\frac{1}{6}} \log \left (-a b^{4} \left (-\frac{1}{a b^{5}}\right )^{\frac{5}{6}} + x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.158561, size = 26, normalized size = 0.12 \begin{align*} \operatorname{RootSum}{\left (46656 t^{6} a b^{5} + 1, \left ( t \mapsto t \log{\left (7776 t^{5} a b^{4} + x \right )} \right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]